import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
import Home from '../views/home/index.vue'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/about',
    name: 'About',
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
  {
    path: '/filterHouse',
    name: 'filterHouse',
    component: () => import(/* webpackChunkName: "filter" */ '../views/filter/index.vue')
  },
  {
    path: '/map',
    name: 'map',
    component: () => import(/* webpackChunkName: "map" */ '../views/map/index.vue')
  },
  {
    path: '/houseDetail',
    name: 'houseDetail',
    component: () => import(/* webpackChunkName: "houseDetail" */ '../views/houseDetail/index.vue')
  },
  {
    path: '/newList',
    name: 'newList',
    component: () => import(/* webpackChunkName: "newList" */ '../views/newHouse/index.vue')
  },
  {
    path: '/businessHouse',
    name: 'businessHouse',
    component: () => import(/* webpackChunkName: "businessHouse" */ '../views/businessHouse/index.vue')
  },
  {
    path: '/realPage',
    name: 'realPage',
    component: () => import(/* webpackChunkName: "realPage" */ '../views/realPage/index.vue')
  },
  {
    path: '/realDetail',
    name: 'realDetail',
    component: () => import(/* webpackChunkName: "realDetail" */ '../views/realDetail/index.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
